Skip to content

Fix sky scan orientation, p-value plots and wording in the tutorials - #340

Open
tomaskontrimas wants to merge 2 commits into
masterfrom
tutorial-fixes
Open

tomaskontrimas wants to merge 2 commits into
masterfrom
tutorial-fixes

Conversation

@tomaskontrimas

@tomaskontrimas tomaskontrimas commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes a bug in the sky scan tutorial, plus incorrect statements, stale hard-coded values and typos across the tutorial
notebooks.

  • sky_scan.ipynb:

    • The TS map was drawn transposed. The results array was filled as [ra_idx, dec_idx], but pcolormesh/contour expect [dec_idx, ra_idx]. Because the grid is square, this didn't raise an error. The same mismatch swapped the R.A. and Dec. of the best-fit marker.
  • p_value_method_comparison.ipynb:

    • calculate_critical_ts_from_gamma now uses the same eta as the fit (it was hard-coded to 1.0 before).
    • The y-axis of the density histogram is labelled "Probability density" instead of "Counts".
  • concepts/dataset.ipynb:

    • The notebook failed to execute because it used the non-existent WGETDatasetTransfer.post_transfer_unzip as post-transfer function. It now uses post_transfer_unarchive.
    • Updated to the current API: it mentions all three transfer methods (rsync, wget, urlretrieve) and adds an example of an origin given as a full download URL, as used for the IceCube public data. No data is downloaded.
  • DatasetOrigin.__str__: printed the metaclass name (ABCMeta) as the transfer class, or NoneType for plain transfer functions. It now prints the name of the transfer class or function.

Other corrections to the text, e.g. point-source flux units without sr^-1, the Wilks' theorem degrees of freedom in the sky scan, and why the time-dependent analysis finds the 2014–2015 flare of TXS 0506+056.

@tomaskontrimas
tomaskontrimas requested review from chiarabellenghi and a balanced review from Copilot October 28, 2026 21:55
@tomaskontrimas tomaskontrimas self-assigned this Oct 28, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

The dataset concept notebook failed to execute, because it used the
non-existing WGETDatasetTransfer.post_transfer_unzip method as post
transfer function. Use the post_transfer_unarchive function instead,
which extracts .zip, .tar.gz, .tgz, .tar.bz2, and .tar.xz archives.

Update the notebook to the current API: mention all three transfer
methods (rsync, wget, urlretrieve), add an example for an origin given
as a complete download URL (as used for the IceCube public data), fix
typos, and store the outputs of a fresh execution. No data is
downloaded by the notebook.

The notebook also revealed that DatasetOrigin.__str__ printed the name
of the metaclass ("ABCMeta") as transfer class, or "NoneType" for plain
transfer functions. Print the name of the transfer class, or of the
transfer function, instead.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants